/** 右键菜单 */
.konva-root-container-contextmenu {
    &-line {
        border-bottom: solid var(--konva-border-color, @konva-border-color) 1px;
        margin: 10px 0;
    }

    &-item {
        padding: 10px;
        cursor: pointer;
        border-radius: @BorderRadius;
        margin: 10px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;

        &:hover {
            background-color: var(--konva-menu-hover-bgcolor,
                    @konva-menu-hover-bgcolor );

            .submenu {
                display: flex;
            }
        }

        .text i {
            display: inline-block;
            width: 16px;
            height: 16px;
            margin-right: 8px;
        }

        .shortcut {
            font-size: 12px;
            color: var(--konva-text-info-color, @konva-text-info-color);
        }

        .submenu {
            display: none;
            flex-direction: column;
            position: absolute;
            left: 100%;
            top: 50%;
            transform: translateY(-50%);
            width: 180px;
            background-color: #fff;
            padding: 10px;
            border-radius: @BorderRadius;
            border: solid var(--konva-border-color, @konva-border-color) 1px;
            box-shadow: 0 0 10px var(--konva-box-shadow-color, @konva-box-shadow-color);

            svg {
                width: 18px;
                height: 18px;
                margin-right: 8px;
            }

            span {
                padding: 10px;
                cursor: pointer;
                border-radius: @BorderRadius;
                display: flex;
                align-items: center;
                position: relative;

                &:hover {
                    background-color: var(--konva-menu-hover-bgcolor,
                            @konva-menu-hover-bgcolor );
                }
            }
        }
    }
}